<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code">
	<x:out select="$xmlData/data/proposal/grant_code" />
</c:set>
<c:set var="sub_grant_code">
	<x:out select="$xmlData/data/proposal/sub_grant_code" />
</c:set>



<div style="margin-bottom: 5px;">
    		<strong>温馨提示：</strong><br/>
    		1、项目承担单位应正确填列资金来源，支出预算和测算依据；<br/>
2、“新增投入”从申报当年1月1日起算；<br/>
3、经费预算作为项目评审立项、经费批复、绩效考核的依据；<br/>
4、项目承担单位未对支出进行分析说明的，一般不予核定预算。
</div>
<div class="t_bar">
	<span class="color_red">*</span>资金信息（单位：万元）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1"  id="budgetsMsg">
	<tr>
		<td  nowrap align="right">项目计划投资总额：</td>
		<td ><input type="text" style="text-align: right;width: 100px"
			name="budgets/input_total" id="source_total"
			class="gray " disabled
			label="资金信息-->项目计划投资总额" 
			value="<x:out select="$xmlData/data/budgets/input_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td  nowrap align="right">其中：已完成投资：</td>
		<td><input type="text" style="text-align: right;width: 100px"
			name="budgets/already_input_total" id="source_already"
			class="required gray" label="资金信息-->其中：已完成投资" disabled
			value="<x:out select="$xmlData/data/budgets/already_input_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td  nowrap align="right">计划新增投资：</td>
		<td ><input type="text" style="text-align: right;width: 100px"
			name="budgets/add_research" id="source_add"
			class="required gray valueEqual:source_add:total_total_0" disabled
			label="资金信息-->计划新增投资"
			value="<x:out select="$xmlData/data/budgets/add_research" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td align="right"><span class="color_red">*</span>申请金额：</td>
		<td ><input type="text"
			style="text-align: right;width: 100px" name="budgets/apply_money"
			id="source_apply"
			class="required  valueEqual:source_apply:total_invest_0  valueCompare:source_apply:request_limit" label="资金信息-->申请金额"
			onchange="setSource(this.value);countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			value="<x:out select="$xmlData/data/budgets/apply_money" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>



	</tr>
</table>
<br/>
<div class="t_bar">
	<span class="color_red">*</span>已完成投资来源（单位：万元）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1"  id="budgetsMsg1">
	<tr align="center" class="li_2">
		<td rowspan="2">自有资金</td>
		<td rowspan="2">银行贷款</td>
		<td colspan="4">已获政府资助</td>
		<td rowspan="2" >其他资金</td>
	</tr>
	<tr align="center" class="li_2">
		<td>国家</td>
		<td>省级</td>
		<td>市级</td>
		<td>区级</td>
	</tr>
	<tr class="li_1">
		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/own_fund_over" id="source_own_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','already');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="已完成投资来源-->自有资金"
			value="<x:out select="$xmlData/data/budgets/own_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/bank_fund_over" id="source_bank_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','already');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="已完成投资来源-->银行贷款"
			value="<x:out select="$xmlData/data/budgets/bank_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

	

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/country_fund_over" id="source_country_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','already');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="已完成投资来源-->已获政府资助（国家）"
			value="<x:out select="$xmlData/data/budgets/country_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/provincial_fund_over" id="source_provincial_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','already');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="已完成投资来源-->已获政府资助（省级）"
			value="<x:out select="$xmlData/data/budgets/provincial_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/city_fund_over" id="source_city_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','already');countFundAuto('source_','already,add','total');synchro();"
			class="required " label="已完成投资来源-->已获政府资助（市级）"
			value="<x:out select="$xmlData/data/budgets/city_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/area_fund_over" id="source_area_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','already');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="已完成投资来源-->已获政府资助（区级）"
			value="<x:out select="$xmlData/data/budgets/area_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		
	<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/other_fund_over" id="source_other_over"
			onchange="countFundAuto('source_','own_over,bank_over,other_over,country_over,provincial_over,city_over,area_over','already');countFundAuto('source_','already,add','total');synchro();"
			class="required " label="已完成投资来源-->其他资金"
			value="<x:out select="$xmlData/data/budgets/other_fund_over" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>	
			
	</tr>

</table>
<br/>
<div class="t_bar">
	<span class="color_red">*</span>计划新增投资来源（单位：万元）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1"  id="budgetsMsg2">
	<tr align="center" class="li_2">
		<td rowspan="2">自有资金</td>
		<td rowspan="2">银行贷款</td>
		<td colspan="4">申请政府资助</td>
		<td rowspan="2" >其他资金</td>
	</tr>
	<tr align="center" class="li_2">
		<td>国家</td>
		<td>省级</td>
		<td>市级</td>
		<td>区级</td>
	</tr>
	<tr class="li_1">
		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/own_fund" id="source_own"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="计划新增投资来源-->自有资金"
			value="<x:out select="$xmlData/data/budgets/own_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/bank_fund" id="source_bank"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="计划新增投资来源-->银行贷款"
			value="<x:out select="$xmlData/data/budgets/bank_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

	

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/country_fund" id="source_country"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="计划新增投资来源-->申请政府资助（国家）"
			value="<x:out select="$xmlData/data/budgets/country_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/provincial_fund" id="source_provincial"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="计划新增投资来源-->申请政府资助（省级）"
			value="<x:out select="$xmlData/data/budgets/provincial_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/city_fund" id="source_city"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			class="required " label="计划新增投资来源-->申请政府资助（市级）"
			value="<x:out select="$xmlData/data/budgets/city_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/area_fund" id="source_area"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			class="required" label="计划新增投资来源-->申请政府资助（区级）"
			value="<x:out select="$xmlData/data/budgets/area_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		
	<td><input type="text" style="text-align: right; width: 100px"
			name="budgets/other_fund" id="source_other"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','add');countFundAuto('source_','already,add','total');synchro();"
			class="required " label="计划新增投资来源-->其他资金"
			value="<x:out select="$xmlData/data/budgets/other_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>	
			
	</tr>

</table>
<br/>
<div class="t_bar">
	<span class="color_red">*</span>计划新增投资支出（单位：万元）
</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="fundAdds">

	<tr class="li_2">
		<td align="center" width="30%" rowspan="2">支出科目</td>
		<td class="TblHead" align="center" width="28%" colspan="2">新增投资支出</td>
		<td class="TblHead" align="center" width="28%" colspan="3" >分年度支出预算</td>
	</tr>
	<tr >
		<td class="TblHead" align="center" width="14%">总额</td>
		<td class="TblHead" align="center" width="14%">其中：申请资助资金</td>
		<td class="TblHead" align="center" width="14%" >${year}年</td>
		<td class="TblHead" align="center" width="14%" >${year+1}年</td>
		<td class="TblHead" align="center" width="14%" >${year+2}年</td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">合计</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[00]@invest_code" value="00" /> <input
			type="hidden" name="budget/invest_detail/invest[00]/name" value="合计" />
			<input type="text" name="budget/invest_detail/invest[00]/total_total"
			id="total_total_0" class="gray" disabled
			style="text-align: right; width: 100px;" label="计划新增投资支出总额合计"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[00]/total_invest"
			id="total_invest_0" class="gray" disabled
			style="text-align: right; width: 100px;" label="计划新增投资支出中申请资助资金合计"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_invest" />" />
		</td>


		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[00]/total_allot" id="total_allot_0"
			class="gray" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[00]/total_self" id="total_self_0"
			class="gray" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[00]/total_country"
			id="total_country_0" class="gray" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='00']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
	</tr>

	<tr>
		<td align="left" style="padding-left: 20px">1、设备费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[01]@invest_code" value="01" /> <input
			type="hidden" name="budget/invest_detail/invest[01]/name"
			value="1、设备费" /> <input type="text"
			style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[01]/total_total" id="total_total_1"
			class="gray" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text"
			name="budget/invest_detail/invest[01]/total_invest"
			id="total_invest_1" class="gray" disabled
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_invest" />" />

		</td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[01]/total_allot" id="total_allot_1"
			class="gray" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[01]/total_self" id="total_self_1"
			class="gray" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[01]/total_country"
			id="total_country_1" class="gray" disabled
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='01']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 40px">（1）购置设备费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[02]@invest_code" value="02" /> <input
			type="hidden" name="budget/invest_detail/invest[02]/name"
			value="（1）购置设备费" /> <input type="text"
			name="budget/invest_detail/invest[02]/total_total" id="total_total_2"
			label="购置设备费中的总额" style="text-align: right; width: 100px;"
			onfocus="InitInput.setNumber(this,9,4,2)"
			class=" valueGreatEqual:total_total_2:total_invest_2  "
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_total" />"
			onchange="countFundAuto('total_','total_2,total_3,total_4','total_1');
				    countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[02]/total_invest"
			id="total_invest_2" label="购置设备费中的申请资助资金"
			style="text-align: right; width: 100px;"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_invest" />"
			onchange="countFundAuto('total_','invest_2,invest_3,invest_4','invest_1');
				    countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[02]/total_allot" id="total_allot_2"
			class=" valueGreatEqual:total_total_2:total_allot_2 "
			label="购置设备费中${year }年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_2,allot_3,allot_4','allot_1');
				    countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[02]/total_self" id="total_self_2"
			class=" valueGreatEqual:total_total_2:total_self_2 "
			label="购置设备费中${year+1 }年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_2,self_3,self_4','self_1');
				    countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[02]/total_country"
			class=" valueGreatEqual:total_total_2:total_country_2 "
			id="total_country_2" label="购置设备费中${year+2 }年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='02']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_2,country_3,country_4','country_1');
				    countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 40px">（2）自制设备费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[03]@invest_code" value="03">
			<input type="hidden" name="budget/invest_detail/invest[03]/name"
			value="（2）自制设备费"> <input type="text"
			name="budget/invest_detail/invest[03]/total_total" label="自制设备费中的总额"
			style="text-align: right; width: 100px;" id="total_total_3"
			onfocus="InitInput.setNumber(this,9,4,2)"
			class=" valueGreatEqual:total_total_3:total_invest_3 "
			onchange="countFundAuto('total_','total_2,total_3,total_4','total_1');
				countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[03]/total_invest"
			label="自制设备费中的申请资助资金" style="text-align: right; width: 100px;"
			id="total_invest_3" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_invest" />"
			onchange="countFundAuto('total_','invest_2,invest_3,invest_4','invest_1');
				    countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[03]/total_allot"
			class=" valueGreatEqual:total_total_3:total_allot_3 "
			label="自制设备费中${year }年经费" id="total_allot_3"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_2,allot_3,allot_4','allot_1');
				    countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[03]/total_self"
			class=" valueGreatEqual:total_total_3:total_self_3 "
			label="自制设备费中${year+1 }年经费" id="total_self_3"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_2,self_3,self_4','self_1');
				    countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[03]/total_country"
			class=" valueGreatEqual:total_total_3:total_country_3 "
			label="自制设备费中${year+2}年经费" id="total_country_3"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='03']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_2,country_3,country_4','country_1');
				    countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 40px">（3）设备改造与租赁费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[04]@invest_code" value="04">
			<input type="hidden" name="budget/invest_detail/invest[04]/name"
			value="（3）设备改造与租赁费"> <input type="text"
			name="budget/invest_detail/invest[04]/total_total"
			class=" valueGreatEqual:total_total_4:total_invest_4 "
			label="设备改造与租赁费中的总额" style="text-align: right; width: 100px;"
			id="total_total_4" onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','total_2,total_3,total_4','total_1');
						countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[04]/total_invest"
			label="设备改造与租赁费中的申请资助资金" style="text-align: right; width: 100px;"
			id="total_invest_4" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_invest" />"
			onchange="countFundAuto('total_','invest_2,invest_3,invest_4','invest_1');
				    countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[04]/total_allot"
			class=" valueGreatEqual:total_total_4:total_allot_4 "
			label="设备改造与租赁费中${year }年经费" id="total_allot_4"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_2,allot_3,allot_4','allot_1');
				    countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[04]/total_self"
			class=" valueGreatEqual:total_total_4:total_self_4 "
			label="设备改造与租赁费中${year+1 }年经费" id="total_self_4"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_2,self_3,self_4','self_1');
				    countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			name="budget/invest_detail/invest[04]/total_country"
			class=" valueGreatEqual:total_total_4:total_country_4 "
			label="设备改造与租赁费中${year+2}年经费" id="total_country_4"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='04']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_2,country_3,country_4','country_1');
				    countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">2、基本建设费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[05]@invest_code" value="05">
			<input type="hidden" name="budget/invest_detail/invest[05]/name"
			value="2、基本建设费"> <input type="text"
			class=" valueGreatEqual:total_total_5:total_invest_5 "
			name="budget/invest_detail/invest[05]/total_total" id="total_total_5"
			label="基本建设费中的总额" onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[05]/total_invest"
			id="total_invest_5" label="基本建设费中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_5" name="budget/invest_detail/invest[05]/total_allot"
			class=" valueGreatEqual:total_total_5:total_allot_5 "
			label="基本建设费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_5" name="budget/invest_detail/invest[05]/total_self"
			class=" valueGreatEqual:total_total_5:total_self_5 "
			label="基本建设费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_5"
			name="budget/invest_detail/invest[05]/total_country"
			class=" valueGreatEqual:total_total_5:total_country_5 "
			label="基本建设费中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='05']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">3、材料费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[06]@invest_code" value="06">
			<input type="hidden" name="budget/invest_detail/invest[06]/name"
			value="3、材料费"> <input type="text"
			name="budget/invest_detail/invest[06]/total_total" id="total_total_6"
			label="材料费中的总额"
			class=" valueGreatEqual:total_total_6:total_invest_6 "
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			style="text-align: right; width: 100px;"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[06]/total_invest"
			id="total_invest_6" label="材料费中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_6" name="budget/invest_detail/invest[06]/total_allot"
			class=" valueGreatEqual:total_total_6:total_allot_6 "
			label="材料费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange=" countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_6" name="budget/invest_detail/invest[06]/total_self"
			class=" valueGreatEqual:total_total_6:total_self_6 "
			label="材料费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_6"
			name="budget/invest_detail/invest[06]/total_country"
			class=" valueGreatEqual:total_total_6:total_country_6 "
			label="材料费中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='06']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">4、测试化验加工费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[07]@invest_code" value="07">
			<input type="hidden" name="budget/invest_detail/invest[07]/name"
			value="4、测试化验加工费"> <input type="text"
			name="budget/invest_detail/invest[07]/total_total" id="total_total_7"
			label="测试化验加工费中的总额" onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_7:total_invest_7 "
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[07]/total_invest"
			id="total_invest_7" label="测试化验加工费中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_7" name="budget/invest_detail/invest[07]/total_allot"
			class=" valueGreatEqual:total_total_7:total_allot_7 "
			label="测试化验加工费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_7" name="budget/invest_detail/invest[07]/total_self"
			class=" valueGreatEqual:total_total_7:total_self_7 "
			label="测试化验加工费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_7"
			name="budget/invest_detail/invest[07]/total_country"
			class=" valueGreatEqual:total_total_7:total_country_7 "
			label="测试化验加工费中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='07']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">5、燃料动力费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[08]@invest_code" value="08">
			<input type="hidden" name="budget/invest_detail/invest[08]/name"
			value="5、燃料动力费"> <input type="text"
			name="budget/invest_detail/invest[08]/total_total" id="total_total_8"
			label="燃料动力费中的总额" onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_8:total_invest_8 "
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[08]/total_invest"
			id="total_invest_8" label="燃料动力费中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_8" name="budget/invest_detail/invest[08]/total_allot"
			class=" valueGreatEqual:total_total_8:total_allot_8 "
			label="燃料动力费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_8" name="budget/invest_detail/invest[08]/total_self"
			class=" valueGreatEqual:total_total_8:total_self_8 "
			label="燃料动力费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_8"
			name="budget/invest_detail/invest[08]/total_country"
			class=" valueGreatEqual:total_total_8:total_country_8 "
			label="燃料动力费${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='08']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">6、差旅费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[09]@invest_code" value="09">
			<input type="hidden" name="budget/invest_detail/invest[09]/name"
			value="6、差旅费"> <input type="text"
			name="budget/invest_detail/invest[09]/total_total" id="total_total_9"
			label="差旅费中的总额" onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_9:total_invest_9 "
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[09]/total_invest"
			id="total_invest_9" label="差旅费中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<!-- <td align="center"><span
			name="budget/invest_detail/invest[9]/total_invest">/</span></td> -->
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_9" name="budget/invest_detail/invest[09]/total_allot"
			class=" valueGreatEqual:total_total_9:total_allot_9 "
			label="差旅费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_9" name="budget/invest_detail/invest[09]/total_self"
			class=" valueGreatEqual:total_total_9:total_self_9 "
			label="差旅费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_9"
			name="budget/invest_detail/invest[09]/total_country"
			class=" valueGreatEqual:total_total_9:total_country_9 "
			label="差旅费中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='09']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">7、会议费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[10]@invest_code" value="10">
			<input type="hidden" name="budget/invest_detail/invest[10]/name"
			value="7、会议费"> <input type="text"
			name="budget/invest_detail/invest[10]/total_total"
			id="total_total_10" label="会议费中的总额"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_10:total_invest_10"
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[10]/total_invest"
			id="total_invest_10" label="会议费中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<!-- <td align="center"><span
			name="budget/invest_detail/invest[10]/total_invest">/</span></td> -->
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_10"
			name="budget/invest_detail/invest[10]/total_allot"
			class=" valueGreatEqual:total_total_10:total_allot_10 "
			label="会议费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_10" name="budget/invest_detail/invest[10]/total_self"
			class=" valueGreatEqual:total_total_10:total_self_10 "
			label="会议费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_10"
			name="budget/invest_detail/invest[10]/total_country"
			class=" valueGreatEqual:total_total_10:total_country_10 "
			label="会议费中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='10']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">8、技术合作与交流费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[11]@invest_code" value="11">
			<input type="hidden" name="budget/invest_detail/invest[11]/name"
			value="8、技术合作与交流费"> <input type="text"
			name="budget/invest_detail/invest[11]/total_total"
			id="total_total_11" label="技术合作与交流费中的总额"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_11:total_invest_11"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[11]/total_invest"
			id="total_invest_11" label="技术合作与交流费中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<!-- <td align="center"><span
			name="budget/invest_detail/invest[11]/total_invest">/</span></td> -->
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_11"
			name="budget/invest_detail/invest[11]/total_allot"
			class=" valueGreatEqual:total_total_11:total_allot_11 "
			label="技术合作与交流费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_11" name="budget/invest_detail/invest[11]/total_self"
			class=" valueGreatEqual:total_total_11:total_self_11 "
			label="技术合作与交流费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_11"
			name="budget/invest_detail/invest[11]/total_country"
			class=" valueGreatEqual:total_total_11:total_country_11 "
			label="技术合作与交流费中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='11']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">9、出版费/文献/知识产权事务费</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[12]@invest_code" value="12">
			<input type="hidden" name="budget/invest_detail/invest[12]/name"
			value="9、出版费/文献/知识产权事务费"> <input type="text"
			name="budget/invest_detail/invest[12]/total_total"
			id="total_total_12" label="出版费/文献/知识产权事务费中的总额"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_12:total_invest_12"
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[12]/total_invest"
			id="total_invest_12" label="出版费/文献/知识产权事务费中的总额中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<!-- <td align="center"><span
			name="budget/invest_detail/invest[12]/total_invest">/</span></td> -->
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_12"
			name="budget/invest_detail/invest[12]/total_allot"
			class=" valueGreatEqual:total_total_12:total_allot_12 "
			label="出版费/文献/知识产权事务费中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_12" name="budget/invest_detail/invest[12]/total_self"
			class=" valueGreatEqual:total_total_12:total_self_12 "
			label="出版费/文献/知识产权事务费中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_12"
			name="budget/invest_detail/invest[12]/total_country"
			class=" valueGreatEqual:total_total_12:total_country_12 "
			label="出版费/文献/知识产权事务费中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='12']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
	<tr>
		<td align="left" style="padding-left: 20px">10、人员费用</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[13]@invest_code" value="13">
			<input type="hidden" name="budget/invest_detail/invest[13]/name"
			value="10、人员费用"> <input type="text"
			name="budget/invest_detail/invest[13]/total_total"
			id="total_total_13" label="人员费用中的总额"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_13:total_invest_13"
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[13]/total_invest"
			id="total_invest_13" label="人员费用中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<!-- <td align="center"><span
			name="budget/invest_detail/invest[13]/total_invest">/</span></td> -->
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_13"
			name="budget/invest_detail/invest[13]/total_allot"
			class=" valueGreatEqual:total_total_13:total_allot_13 "
			label="人员费用中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_13" name="budget/invest_detail/invest[13]/total_self"
			class=" valueGreatEqual:total_total_13:total_self_13 "
			label="人员费用中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_13"
			name="budget/invest_detail/invest[13]/total_country"
			class=" valueGreatEqual:total_total_13:total_country_13 "
			label="人员费用中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='13']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>

	<tr>
		<td align="left" style="padding-left: 20px">11、管理费用</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[14]@invest_code" value="14">
			<input type="hidden" name="budget/invest_detail/invest[14]/name"
			value="11、管理费用"> <input type="text"
			name="budget/invest_detail/invest[14]/total_total"
			id="total_total_14" label="管理费用中的总额"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_14:total_invest_14"
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[14]/total_invest"
			id="total_invest_14" label="管理费用中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<!-- <td align="center"><span
			name="budget/invest_detail/invest[14]/total_invest">/</span></td> -->
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_14"
			name="budget/invest_detail/invest[14]/total_allot"
			class=" valueGreatEqual:total_total_14:total_allot_14 "
			label="管理费用中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_14" name="budget/invest_detail/invest[14]/total_self"
			class=" valueGreatEqual:total_total_14:total_self_14 "
			label="管理费用中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_14"
			name="budget/invest_detail/invest[14]/total_country"
			class=" valueGreatEqual:total_total_14:total_country_14 "
			label="管理费用中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='14']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>

	<tr>
		<td align="left" style="padding-left: 20px">12、其他费用</td>
		<td><input type="hidden"
			name="budget/invest_detail/invest[15]@invest_code" value="15">
			<input type="hidden" name="budget/invest_detail/invest[15]/name"
			value="12、其他费用"> <input type="text"
			name="budget/invest_detail/invest[15]/total_total"
			id="total_total_15" label="其他费用中的合计"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			class=" valueGreatEqual:total_total_15:total_invest_15"
			onchange="countFundAuto('total_','total_1,total_5,total_6,total_7,total_8,total_9,total_10,total_11,total_12,,total_13,total_14,total_15','total_0');"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_total" />" />
		</td>
		<td><input type="text"
			name="budget/invest_detail/invest[15]/total_invest"
			id="total_invest_15" label="其他费用中的申请资助资金"
			onfocus="InitInput.setNumber(this,9,4,2)"
			style="text-align: right; width: 100px;"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_invest" />"
			onchange="countFundAuto('total_','invest_1,invest_5,invest_6,invest_7,invest_8,invest_9,invest_10,invest_11,invest_12,invest_13,invest_14,invest_15','invest_0');" /></td>
		<!-- <td align="center"><span
			name="budget/invest_detail/invest[15]/total_invest">/</span></td> -->
		<td><input type="text" style="text-align: right; width: 100px"
			id="total_allot_15"
			name="budget/invest_detail/invest[15]/total_allot"
			class=" valueGreatEqual:total_total_15:total_allot_15 "
			label="其他费用中${year}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_allot" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','allot_1,allot_5,allot_6,allot_7,allot_8,allot_9,allot_10,allot_11,allot_12,,allot_13,allot_14,allot_15','allot_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_self_15" name="budget/invest_detail/invest[15]/total_self"
			class=" valueGreatEqual:total_total_15:total_self_15 "
			label="其他费用中${year+1}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_self" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','self_1,self_5,self_6,self_7,self_8,self_9,self_10,self_11,self_12,,self_13,self_14,self_15','self_0');" /></td>

		<td><input type="text" style="text-align: right; width: 100px"
			id="total_country_15"
			name="budget/invest_detail/invest[15]/total_country"
			class=" valueGreatEqual:total_total_15:total_country_15 "
			label="其他费用中${year+2}年经费"
			value="<x:out select="$xmlData/data/budget/invest_detail/invest[@invest_code='15']/total_country" />"
			onfocus="InitInput.setNumber(this,9,4,2)"
			onchange="countFundAuto('total_','country_1,country_5,country_6,country_7,country_8,country_9,country_10,country_11,country_12,,country_13,country_14,country_15','country_0');" /></td>
	</tr>
</table>
<p style="color:red;">备注：申请资助资金主要用于设备费、基本建设费、材料费、测试化验加工费、燃料动力费等支出。</p>
<script type="text/javascript">
$(document).ready(function() {
var prp_version=$("#prp_version").text();

if(prp_version==""||prp_version==null){
	$("#budgetsMsg").find(":input").each(function(){
	$(this).val("0.00");	
	});
	
	$("#budgetsMsg1").find(":input").each(function(){
		$(this).val("0.00");	
		});
	
	$("#budgetsMsg2").find(":input").each(function(){
		$(this).val("0.00");	
		});
	
	$("#fundAdds").find(":input[type!=hidden]").each(function(){
		$(this).val("0.00");	
		});
}

/* var flag_shizhi = $("#flag_shizhi").val();
if(flag_shizhi ==  1){
	$("#source_city").attr("disabled",true);
    $("#source_city").addClass("gray");
}else{ */
	$("#source_city").attr("disabled",true);
	$("#source_area").attr("disabled",true);
	$("#source_city").addClass("gray");
	$("#source_area").addClass("gray");
/* } */
	
});

function synchro(){
	var val = $("#source_apply").val();
	var xmjhtzze = $("#source_total").val();
	$("#sqje").val(formatNumberAuto(val+"", 7, 4, 2));
	$("#xmjhtzze").val(formatNumberAuto(xmjhtzze+"", 7, 4, 2));
	
	var source_already =$("#source_already").val();
	var source_add = $("#source_add").val();
	$("#ywctz").val(source_already);
	$("#jhxztz").val(source_add);
}

function setSource(val){
	var areaNo = $("input[name$='area_no']").val();
	var flag_shizhi = $("#flag_shizhi").val();
	if(flag_shizhi ==  1){
		if((formatNumberAuto(val+"", 7, 4, 2)*10000)%10000!=0)
			$("#source_city").val(formatNumberAuto(val+"0000", 7, 4, 2));
		else
			$("#source_city").val(formatNumberAuto(val+".0000", 7, 4, 2));
		$("#source_area").val("0.00");
	}else{
		if(areaNo == '320202' || areaNo == '320204' || areaNo == '320203'){
			
		if((formatNumberAuto(val*0.8+"", 7, 4, 2)*10000)%10000!=0)
			$("#source_city").val(formatNumberAuto(val*0.8+"0000", 7, 4, 2));
		else
			$("#source_city").val(formatNumberAuto(val*0.8+".0000", 7, 4, 2));
		
		
		if((val*10000-formatNumberAuto(val*0.8+"", 7, 4, 2)*10000)%10000!=0){
		 	$("#source_area").val(formatNumberAuto(((val*10000-formatNumberAuto(val*0.8+"", 7, 4, 2)*10000)/10000)+"0000", 7, 4, 2));
		}else{
			$("#source_area").val(formatNumberAuto(((val*10000-formatNumberAuto(val*0.8+"", 7, 4, 2)*10000)/10000)+".0000", 7, 4, 2));
		}
		}else if(areaNo == '320205' || areaNo == '320206' || areaNo == '320211' || areaNo == '320212'){
			//$("#source_city").val(formatNumberAuto(val*0.5+"", 7, 4, 2));
			if((formatNumberAuto(val*0.5+"", 7, 4, 2)*10000)%10000!=0)
				$("#source_city").val(formatNumberAuto(val*0.5+"0000", 7, 4, 2));
			else
				$("#source_city").val(formatNumberAuto(val*0.5+".0000", 7, 4, 2));
			
			if((val*10000-formatNumberAuto(val*0.5+"", 7, 4, 2)*10000)%10000!=0){
				$("#source_area").val(formatNumberAuto(((val*10000-formatNumberAuto(val*0.5+"", 7, 4, 2)*10000)/10000)+"0000", 7, 4, 2));
			}else
				$("#source_area").val(formatNumberAuto(((val*10000-formatNumberAuto(val*0.5+"", 7, 4, 2)*10000)/10000)+".0000", 7, 4, 2));
		}else if(areaNo == '320281' || areaNo == '320282'){
			//$("#source_city").val(formatNumberAuto(val*0.2+"", 7, 4, 2));
			if((formatNumberAuto(val*0.2+"", 7, 4, 2)*10000)%10000!=0)
				$("#source_city").val(formatNumberAuto(val*0.2+"0000", 7, 4, 2));
			else
				$("#source_city").val(formatNumberAuto(val*0.2+".0000", 7, 4, 2));
			if((val*10000-formatNumberAuto(val*0.2+"", 7, 4, 2)*10000)%10000!=0){
				$("#source_area").val(formatNumberAuto(((val*10000-formatNumberAuto(val*0.2+"", 7, 4, 2)*10000)/10000)+"0000", 7, 4, 2));
			}else{
				$("#source_area").val(formatNumberAuto(((val*10000-formatNumberAuto(val*0.2+"", 7, 4, 2)*10000)/10000)+".0000", 7, 4, 2));
				
			}
		}
	}
}
</script>
